<?php
$pipe_id=$_REQUEST['var'];
$loc_id=$_REQUEST['loc'];
include("connection/connection.php");
if(isset($_REQUEST['pipe_id']))
{
$qr="delete from tbl_dtls_q1_pipeline_ris_dis where id='$_REQUEST[pipe_id]'";
$res=mysql_query($qr);
echo mysql_error();
header("location:q1_rwss_edit.php");

}		
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
<script language="javascript">
function abc()
{
window.close();
}
</script> 
</head>

<body>
<form  action="pipelinerwss_delete.php" method="post">
<input type="hidden" name="pipe_id" value="<?php echo $pipe_id;?>" />

<font face="Verdana, Arial, Helvetica, sans-serif" style="font-size:12px" color="#333333"><b>Are you sure to delete this pipeline?</b></font><br /><br />
<input type="submit" name="delete" id="delete" value="YES" style="background-color:#666666; font-size:10px; color:#FFFFFF; border:2px solid #CCCCCC; height:25px; width:50px" />&nbsp;&nbsp;&nbsp;&nbsp;<input type="button" name="cancel" id="cancel"  value="NO" style="background-color:#666666; font-size:10px; color:#FFFFFF; border:2px solid #CCCCCC;height:25px; width:50px"  onclick="window.close();"/>
</form>
</body>
</html>
